<div class="comments-block" id="comment">
  <div class="title">
    <h2>晒单评价</h2>
  </div>
  {$comment_list = comment_helper::get_comment_list_by_goods_id($goods_id, 10)}
  {if $comment_list}
  <div class="top clearfix">
    <div class="box left clearfix">
      <div class="rate-box">
      {$ratio = comment_helper::get_comment_ratio($goods_id)}
        <span class="rate"><em>{$ratio}</em>%</span>
        <p>五星评价率</p>
      </div>
      <ul class="star-ul">
        {for $a=1 to 5}
          <li><span class="star">
          {for $b=1 to 6-$a}
            <a href="javascript:void(0);"></a>
          {/for}
          {for $b=1 to $a-1}
            <a href="javascript:void(0);" class="disabled"></a>
          {/for}
          {$star = comment_helper::get_count_comment($goods_id, 6-$a)}
          </span><span class="num">{$star}人</span></li>
        {/for}
      </ul>
    </div>
    <div class="box box2 right">
      {$label = comment_helper::get_comment_label(6)}
      {foreach $label as $k=>$v}
      <a href="javascript:void(0);">{$v.title}</a>
      {/foreach}
    </div>
  </div>
  {/if}
  <!--end top-->
  <div class="list">
    {foreach $comment_list as $k=>$v}
    <dl class="clearfix">
        <dt>
          {$cover = user_helper::avatar($v.user_id)}
          {$name =user_helper::display_name($v.user_id)}
          <span class="user-img"><img src="{$cover}" width="80" height="80"></span>
          <span class="user-name">{$name}</span>
        </dt>
        <dd>
          <p class="star">
            {for $a=1 to $v.star}
            <a href="###"></a>
            {/for}
          </p>
          <p class="con">{$v.title}</p>
          <div class="picture-box">
            <ul class="clearfix">
              {$img = comment_helper::get_comment_img($v.id)}
              {foreach $img as $k1=>$v1}
              <li><img src="{_image($v1.path)}" height="90"></li>
              {/foreach}
            </ul>
          </div>
          {$official_list = comment_helper::get_official_list($v.id)}
          {$count_official = comment_helper::get_count_official($v.id)}
          {$count_comment_user1 = comment_helper::get_comment_user($v.id, 1)}
          {$count_comment_user2 = comment_helper::get_comment_user($v.id, 2)}
          <p class="useful clearfix"><span class="left" data-comment_id="{$v.id}" data-user_id="{$user_id}">此评价是否有用？<a href="javascript:void(0)" class="js_comment_user {if !$user_id}checkLoginBox{/if}" data-status="1" data-num="{$count_comment_user1}">有用（{$count_comment_user1}）</a><a href="javascript:void(0)" class="js_comment_user {if !$user_id}checkLoginBox{/if}" data-status="2" data-num="{$count_comment_user1}">没用（{$count_comment_user2}）</a></span><a href="###" class="reply-btn">回复（{$count_official}）</a></p>
          {foreach $official_list as $k1=>$v1}
          <div class="official-reply">
            <span class="name">官方回复：</span>
            <p class="reply-con">{$v1.title}</p>
          </div>
          {/foreach}
        </dd>
    </dl>
    {/foreach}
  </div>
  {$count_comment = comment_helper::get_count_comment($goods_id)}
  {if $count_comment > 10}
  <a href="{AnUrl("comment/{$goods_id}")}" class="more">查看全部评价&gt;</a>
  {/if}
</div>